package com.pansoft.openplanet.bean;

import java.io.File;
import java.io.Serializable;

/**
 * Created by YQS on 2018/3/24.
 * 弃用，请使用baseWalletBean
 */
@Deprecated
public class WalletBean implements Serializable {

    //钱包地址
    private String address;
    //余额
    private String balance;
    //keystore 完整路径
    private String filePath;
    private File file;
    //头像
    private String avatar;
    //账户名称
    private String accountName;

    private boolean isSelected;

    private String eosAccountNames;//eos的多账户

    private WalletBean(Builder builder) {
        setAddress(builder.address);
        setBalance(builder.balance);
        setFilePath(builder.filePath);
        setFile(builder.file);
        setAvatar(builder.avatar);
        setAccountName(builder.accountName);
        setSelected(builder.isSelected);
        setEosAccountNames(builder.eosAccountNames);
    }
    public WalletBean() {

    }
    public String getAvatar() {
        return avatar;
    }

    public WalletBean setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }

    public String getAccountName() {
        return accountName;
    }

    public WalletBean setAccountName(String accountName) {
        this.accountName = accountName;
        return this;
    }

    public WalletBean setEosAccountNames(String eosAccountNames) {
        this.eosAccountNames = eosAccountNames;
        return this;
    }

    public String getBalance() {
        return balance;
    }

    public WalletBean setBalance(String balance) {
        this.balance = balance;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public WalletBean setAddress(String address) {
        this.address = address;
        return this;
    }

    public String getEosAccountNames() {
        return eosAccountNames;
    }

    public String getFilePath() {
        return filePath;
    }

    public WalletBean setFilePath(String filePath) {
        this.filePath = filePath;
        return this;
    }

    public File getFile() {
        return file;
    }

    public WalletBean setFile(File file) {
        this.file = file;
        return this;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }


    public static final class Builder {
        private String address;
        private String balance;
        private String filePath;
        private File file;
        private String avatar;
        private String accountName;
        private boolean isSelected;
        private String eosAccountNames;

        public Builder() {
        }

        public Builder address(String val) {
            address = val;
            return this;
        }

        public Builder balance(String val) {
            balance = val;
            return this;
        }

        public Builder filePath(String val) {
            filePath = val;
            return this;
        }

        public Builder file(File val) {
            file = val;
            return this;
        }

        public Builder avatar(String val) {
            avatar = val;
            return this;
        }

        public Builder accountName(String val) {
            accountName = val;
            return this;
        }

        public Builder isSelected(boolean val) {
            isSelected = val;
            return this;
        }

        public Builder eosAccountNames(String val) {
            eosAccountNames = val;
            return this;
        }

        public WalletBean build() {
            return new WalletBean(this);
        }
    }
}
